package com.taiji.oauth2.authorizeserver.constants;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public abstract class AuthorizeServerConstants {

    public static final String [] SCOPES = {"read","write","all"};

    public static final int ACCESS_TOKEN_VALID = 7200;

    public static final int REFRESH_TOKEN_VALID = 9600;

    public static List<Map<String,String>> CLIENTS = new ArrayList<>();

    public static String [] GRANT_TYPES ={"authorization_code","password","refresh_token"};

    static {
        for (int i = 0; i < 4 ; i++) {
            final Map<String,String> client = new HashMap<>();
            client.put("clientId","taiji"+i);
            client.put("secret","1234");
            CLIENTS.add(client);
        }

    }

}
